<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--view层  模板-->
<div id="app">
    输入的文本：<input type="text" v-model="message"> {{message}}
    <br>

    性别：<input type="radio" name="sex" value="男" v-model="checked">男
    <input type="radio" name="sex" value="女" v-model="checked">女
    <p>选中了：{{checked}}</p>
    <br>

    下拉框：
    <select v-model="degree">
        <option value="" disabled>--请选择--</option>
        <option selected>A</option>
        <option>B</option>
        <option>C</option>
        <option>D</option>
    </select>
    <span>下拉框选中了：{{degree}}</span>

</div>

<!--1、导入vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script>
    var vm = new Vue({
        el:"#app",
        //Model：数据
        data:{
            message: "123",
            checked: '',
            degree: ''
        }
    });
</script>

</body>
</html>